﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AnswerList.aspx.cs" Inherits="HFWebManage.Answer.AnswerList" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../js/ManagerFunction.js"></script>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <th colspan="6">回复列表</th>
        </tr>
        <tr>
            <td class="usertablerow3" width="5%"><input  type="checkbox" onclick="doSelectItem(1); " /></td>
            <td class="usertablerow3" width="5%"><b>ID</b></td>
            <td class="usertablerow3" width="25%"><b>所属问题</b></td>
            <td class="usertablerow3" width="20%"><b>回答律师</b></td>
            <td class="usertablerow3" width="30%"><b>回复内容</b></td>
            <td class="usertablerow3" width="15%"><b>操作</b></td>
        </tr>
        <form id="formx" action="?action=deleteall" method="post" onsubmit="return ConfirmDel('确定删除所选用户吗？');">
        <%
            string stylestr = "usertablerow1";
            foreach (hf.Model.Answer i in list)
            { %>
        <tr>
               <td class="<%=stylestr %>" width="5%"><input  type="checkbox" name="cid1" value="<%=i.ID %>" /></td>
               <td class="<%=stylestr %>"><%=i.ID %></td>
               <td class="<%=stylestr %>"><%=i.AskID%></td>
               <td class="<%=stylestr %>"><%=i.LawyerID%></td>
               <td class="<%=stylestr %>"><%=i.Content%></td>
               <td class="<%=stylestr %>"><a href="Answer.aspx?action=modify&ID=<%=i.ID %>">修改</a> <a onclick="return ConfirmDel('确定删除吗？');" href="AnswerList.aspx?action=delete&ID=<%=i.ID %>">删除</a></td>
        </tr>
        <%
                if (stylestr == "usertablerow1")
                {
                    stylestr = "usertablerow2";
                }else{
                    stylestr = "usertablerow1";
                }
            } %>
            <tr>
                <td colspan="6">
                    <input id="Button1" type="submit" value="批量删除" /></td>
            </tr>
            </form>
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <td class="usertablerow1" >
                <asp:Label ID="pager" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <br />
</body>
</form>
</html>
